package onlyTest;

import com.wechat.order.util.xmlUtils.SAXxmlUtil;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;

/**
 * Created by zzy on 2018/1/1.
 */
public class SAXXmltest {
    public static void main(String[] args) throws Exception {
        String parentPath=  System.getProperty("user.dir");
        String path=parentPath+"\\src\\main\\resources\\xml\\student2.xml";
        File file=new File(path);
        InputStream inputStream=new FileInputStream(file);
        SAXxmlUtil.readXML(inputStream);

        SAXxmlUtil.createXml();
    }
}
